#coding:utf-8


from db_manager import DBManager 
from  config import *
from tool import Tool
import datetime

class DataReport(object):
    def __init__(self):
     
        self.cfgParam = cfgParam
        self.manager = DBManager(db,ip,ur,pd)
        self.manager.connect()
        self.tool = Tool()
    def user_info(self):
        try: 
            result = self.manager.SmartQuery(user_info,[]) 
	    ret = {'status':1,'result':result}
	except Exception.e:
	    ret = {'status':0,'info_code':10003}

        return ret

    def machine_info(self):
        try: 
            result = self.manager.SmartQuery(user_info,[]) 
	    ret = {'status':1,'result':result}
	except Exception.e:
	    ret = {'status':0,'info_code':10003}
	return ret 





    	
   
